package com.hllxd.hism.star.basic.service.model.order;

import lombok.Data;

import java.util.List;

/**
 * 注册码
 *
 * @author liuxiongbo
 * @date 2020/12/21 16:45
 */
@Data
public class LicenseEntity {

    public Long licenseID;         // 注册码ID
    public String license;         // 注册码
    public String subBillID;         // 二十二城订单Id
    public List<Long> subBillIDList;
    public String productCode;     // 商品编码
    public Long transOrderID;      // 跳房子订单ID
    public Integer status;          // 注册码状态 0-未使用、1-已使用
    public String useSubjectID;
    public Long activeTime;        // 使用时间

    public Integer isTest;
    public Integer action;
    public Long actionTime;
    public Long createTime;

    public Integer pageSize;
    public Integer pageNum;


    public static LicenseEntity build(String license, String subBillID, String productCode, Long transOrderID) {
        LicenseEntity thiz = new LicenseEntity();
        thiz.license = license;
        thiz.subBillID = subBillID;
        thiz.productCode = productCode;
        thiz.transOrderID =  transOrderID;
        return thiz;
    }
}
